home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / THINK Universal Headers Proje / THINK Univ Hdr ¹.sit / universal headers.c next >
C/C++ Source or Header  |  1994-02-06  |  3KB  |  64 lines

  1. /*
  2.     THINK C Project for Universal Header support
  3.     by Joe Zobkiw
  4.     
  5.     This project was created to prove to myself that I can use Apple's new
  6.     Universal Headers with THINK C (which does not ship with them.) If you 
  7.     are a Metrowerks or MPW user you may already be using the Universal
  8.     Headers for PowerPC and 68k Macintosh. If you are still a THINK C user
  9.     and expect to easily be able to port your current programs to PowerPC
  10.     compilers in the future, you will want to use the Universal Headers
  11.     starting immediately. It's not _lots_ of work for an average application
  12.     but there are enough changes that you might as well start using the
  13.     new headers as soon as possible.
  14.     
  15.     I am not going to describe the changes so please don't ask me. If you want
  16.     to know where to get these new headers, purchase ETO (Essential Tools & Objects)
  17.     from APDA (Apple Programmers & Developers Assoc) or purchase CodeWarrior from
  18.     Metrowerks (keyword: METROWERKS on AOL.) If you don't know the difference
  19.     between a pre-compiled header and a non-precompiled header and an MPW
  20.     .o format file then you shouldn't be using this. DO NOT send me email 
  21.     saying "What are the Universal Headers?" Go eat some cookies instead. :o
  22.     
  23.     I created this project file using a small shell application that I wrote. 
  24.     I set up the options in the C and C++ options dialog boxes to compile my
  25.     sample app using the new Universal Headers and NO MACHEADERS. If you use 
  26.     this project file to start your own projects you will have to #include
  27.     every file you use. This is not a bad thing since it makes you LEARN
  28.     where the toolbox functions you call are defined... :)
  29.     
  30.     Note also that you must include (at least) Interface.o and Runtime.o. 
  31.     These are the equivalent (more or less) of MacTraps in THINK. You may also
  32.     elect to include other .o files. As far as allowing THINK to access the 
  33.     new header files themselves, I simply trashed all of the Apple #includes 
  34.     that THINK provided and filled that folder with the new Universal Headers
  35.     instead. This should work fine.
  36.     
  37.     I tested this with both a C and a C++ project and it compiled fine with the
  38.     current version (as of 2/6/94) of the Universal Header files. Since these
  39.     files may change in the future, this project might not work for the next
  40.     release of them...but in any case, it is a start and is not meant to be perfect.
  41.     
  42.     Why did I create this? Because I'm starting a new application and I didn't
  43.     want to use MPW to write it since I don't like SADE. I don't yet trust 
  44.     CodeWarrior and there are so many different versions of it that it's hard
  45.     to figure out what compiles what the correct way (however, the release version
  46.     will probably be killer, I'm sure! :) I'm used to THINK C and the THINK Debugger.
  47.     Since I can work well (and fast) in the THINK environment, I decided to use it
  48.     to write my initial code for this project. I can always convert it to CodeWarrior
  49.     later for PowerPC compilation (since I'm now using the Universal Headers :)
  50.  
  51.     Please note that I am not supporting this project file in any way. If you have
  52.     short questions I MAY be able to answer them. Most of all this is for those people
  53.     who know what all this stuff means and want to use THINK C _NOW_ and not have
  54.     their work go to waste when they switch to another compiler for PowerPC development.
  55.     
  56.     Joe Zobkiw (2/6/94)
  57.     America Online    : AFL Zobkiw
  58.     Internet        : aflzobkiw@aol.com
  59. */    
  60.  
  61. main(void)
  62. {
  63.     /* your program goes here */
  64. }